home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Message-ID: <22213481H000CD141H@ag01.bbrandes.berlinet.de>
- From: A.GUMTOW@BBrandes.berlinet.de (Andreas Gumtow)
- Path: tbx.berlinet.de!bbrandes.berlinet.de
- Subject: Re: AREXX beginner needs help...
- Date: Fri, 23 Feb 1996 06:57:53 +0100
- X-Mailer: -- The Answer V3.06ss7 (public Beta 1)
- References: <Dn16L1.9ID@emr1.emr.ca>
- X-Gateway: ZCONNECT zelator.berlinet.de [LEGO v0.10]
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-ZC-PGP-KEY-AVAIL:
-
- On Mo 19.02.1996 at 16:17:25 wrote kpratt@emr1.emr.ca (Ken Pratt)
- in Message "AREXX beginner needs help...":
-
-
- KP> Anyway, one of the first things I tried was to write a little file
- KP> to the RAM: drive. A DO loop counts to 100 and writes the current
- KP> value. Seems to work. However, trying to read values back in is a
- KP> different story. I tried using a DO loop again, counting to 100, and
- KP> then using val = READLN ('RAM:test'). Following that I put a SAY val in,
- KP> but when I run the program my only output is a series of READLN ('RAM:test')'s
- KP> on the screen. Code looks like this:
- KP>
- KP> OPEN myfile,'RAM:test,'R'
- KP> DO 1 to 100
-
- ^^^^^^^^^^^
- DO WHILE ~EOF(myfile)
-
- KP> val=READLN('RAM:test') /*Doesn't matter what's in the brackets*/
-
- ^^^^^^^^^^
- myfile
-
- KP> /* end result is that it just gets echo'd*/
- KP> /*on the screen*/
- KP> SAY val
- KP> END
- KP>
- KP> When run, READLN('RAM:test') is written out over and over.
- KP> Can you help? From what I get out of the manual, it should work.
-
- READLN() needs a filehandle (the result from OPEN)
- Read the file until end !
-
-
-
-
- CU
- Andreas
-
-
- Someone whom you reject today, will reject you tomorrow.
-
-